import { host, HttpRequest } from '@/common/util'
export const conferenceListUrl = '/conference?pageSize=20&currentPage=1&orderBy=st&sortBy=asc&isPublish=1&isVerified=1&isNotOver=1'
export const myConferenceListUrl = '/conference?isJoin=1&alias=users&orderBy=createdAt&sortBy=desc&pageSize=10&currentPage='
export const conferenceDetailUrl = '/conference/'
export const strategyUrl = '/conference/strategy?conferenceId='
export const identityUrl = '/conference/identity?conferenceId='
export function getidentity(id) {
    return HttpRequest({
        url: identityUrl+id,
        type: 'GET',
		auth:false,
    })
}
export function getstrategy(id) {
    return HttpRequest({
        url: strategyUrl+id,
        type: 'GET',
		auth:false,
    })
}
export function getConferenceList() {
    return HttpRequest({
        url: conferenceListUrl,
        type: 'GET',
		auth:false,
    })
}
export function getConferenceDetail(id){
	return HttpRequest({
	    url: conferenceDetailUrl + id,
	    type: 'get',
		
	})
}

export function getMyConferenceList(page) {
    return HttpRequest({
        url: myConferenceListUrl+page,
        type: 'GET',
		auth:true,
    })
}
